﻿@model StartMVC.Models.Member

@{
    ViewBag.Title = "Register";
}

<h2>会员注册</h2>

@using (Html.BeginForm()) {
   // @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>请输入会员注册信息</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nickname)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nickname)
            @Html.ValidationMessageFor(model => model.Nickname)
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.RegisterOn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegisterOn)
            @Html.ValidationMessageFor(model => model.RegisterOn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Authcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Authcode)
            @Html.ValidationMessageFor(model => model.Authcode)
        </div>*@

        <p>
            <input type="submit" value="注册" />
        </p>
    </fieldset>
}
 

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
